package com.sinosoft.sm.system.common.entity;

import java.io.Serializable;

/**
 * 分页实体类
 * 包含属性数据条数、当前页、数据
 * @author xiaoxiong
 */
public class PaginationEntity implements Serializable{

	private static final long serialVersionUID = 1L;

	private int total;	//	数据条数
	
	private int page;	//	当前页
	
	private Object data;	//	数据

	public PaginationEntity() {}
	
	public PaginationEntity(int total, int page, Object data) {
		this.total = total;
		this.page = page;
		this.data = data;
	}
	
	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}
	
}
